import React from 'react'
import routerList from "./router-list"
import { BrowserRouter as Router, Switch, Link, Route } from "react-router-dom";
function RouterList(){
    return(
        <Switch>
            {routerList.map((item,index)=> {return( <Route path={item.path} render={item.render} key={index}></Route>)})}
        </Switch>
    )
}

export default RouterList;